package com.ruoyi.front_desk.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.front_desk.frontdesksuggestions.domain.FrontdeskSuggestions;
import com.ruoyi.front_desk.frontdesksuggestions.service.FrontdeskSuggestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import com.ruoyi.front_desk.frontdesksuggestions.mapper.frondesksuggestionsMapper;

import java.util.List;

/**
 * @author 刘奥旸
 * @version 1.0
 */
@RestController
public class FrontdeskSuggestionsController extends BaseController {

    @Autowired
    public FrontdeskSuggestionsService frontdeskSuggestionsService;
    @GetMapping(value = "/suggestions")
    public TableDataInfo a1(@RequestParam Integer id){
        startPage();
        return getDataTable(frontdeskSuggestionsService.selectFrontdeskSuggestionsById(id));
    }


}
